﻿using System;

class ValueInHexFormat
{
    static void Main()
    {
        int value = 254;
        string hex=String.Format("{0:x2}", value);
        Console.WriteLine(hex);
    }
}